package com.xingxuecn.demos.service.impl;

import com.xingxuecn.demos.service.UserService;

import org.springframework.beans.factory.annotation.Autowired;

import javax.swing.plaf.UIResource;

/**
 * @author Kris at 2018/9/26 11:28
 */
public class UserServiceImplProxy implements UserService {

    UserService userService = new UserServiceImpl();

    public void login() {
        System.out.println("login 之前");
        userService.login();
        System.out.println("login 之后");
    }

    public void unLogin() {
        System.out.println("unLogin 之前");
        userService.unLogin();
        System.out.println("unLogin 之后");
    }

    public void sayHello() {
        userService.sayHello();
    }
}
